package com.smartrobot.smartrobot.circle;


import java.util.HashMap;
import java.util.Map;

import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;

import com.smartrobot.smartrobot.Common.Common;
import com.smartrobot.smartrobot.Common.CommonFunc;

/**
 * Created by Administrator on 2014/12/23.
 */
public class FriendList {

   public String barberId = "";  //理发师id
   public String myId = "";      //我的id

   public String  getFriendListUrl = "/getFriendsList";
   public String getCircleDetailUrl = "/getSofDetailMsg";

   public String post_barberId = "barber_id";//请求的参数名

    //获取朋友列表
    public FriendList(){

    }

    public FriendList(String barberId) {
        this.barberId = barberId;
    }

    //获取朋友列表
    public  void getFriendList(final Handler handler,final Context context){
        try {
            Map<String,String> map = new HashMap<String, String>();

            //设置参数
//            map.put(post_barberId,barberId);
            CommonFunc.c_http_post(false,map, Common.baseUrl + getFriendListUrl, "com.smartrobot.smartrobot.circle.FriendListCallBack", "GetFriendListSuccess", "GetFriendListFail", handler, context);
        }catch (Exception e){
            e.printStackTrace();
        }

    }

    public void getFriendListBackGroup(final Handler handler,final Context context){
        try{
            Map<String,String> map = new HashMap<String, String>();

            //设置参数
//            map.put(post_barberId,barberId);
            CommonFunc.c_http_post(true,map, Common.baseUrl + getFriendListUrl, "com.smartrobot.smartrobot.circle.FriendListCallBack", "GetFriendListSuccess", "GetFriendListFail", handler, context);

        }catch (Exception e){
            e.printStackTrace();
        }

    }


    //获取朋友圈详情
    public void getCircleDetail(final Handler handler,Context context){
        try{
            Map<String,String> map = new HashMap<String, String>();

            //设置参数
            //map.put(post_barberId,barberId);
            CommonFunc.c_http_post(false,map,Common.baseUrl+getCircleDetailUrl,"com.smartrobot.smartrobot.circle.FriendListCallBack","getCircleDetailSuccess","getCircleDetailFail",handler,context);
        }catch (Exception e){
            e.printStackTrace();
        }


    }


    //获取好友详情
    public void GetFriendDetailMsg(){

    }







}
